package org.easy.tool.mapper;

import org.apache.ibatis.annotations.Param;
import org.easy.tool.entity.Knowledge;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Valley
 * @since 2024-09-04 22:51:14
 */
@Repository
public interface KnowledgeMapper extends BaseMapper<Knowledge> {

    Knowledge getKnowledgeByName(@Param("name") String name);

    List<Knowledge> getKnowledgeListByPid(@Param("pid") String pid);

    List<Knowledge> getAllSubject();


    List<Knowledge> getListByIdList(@Param("knowledgeIdList")List<String> knowledgeIdList);
}
